package com.freedom.study;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.support.SpringBootServletInitializer;
import org.springframework.context.annotation.ComponentScan;

@SpringBootApplication
@MapperScan("com.freedom.study.dao.mapper")
@ComponentScan(basePackages = {"com.freedom.study"}) 
public class StartUpApp extends SpringBootServletInitializer{
	
    @Override
    protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
        return application.sources(StartUpApp.class);
    }
    
	public static void main(String[] args) {
		SpringApplication.run(StartUpApp.class, args);
	}

}
